#ifndef __COMN_BUFFER_API_H_
#define __COMN_BUFFER_API_H_

#include "typedef.h"
#include "bufferdef.h"


boolean create_buffer(Buffer buf, char *base, int size);
boolean put_to_buffer(Buffer buf, char c);
char get_from_buffer(Buffer buf);
int stream_to_buffer(Buffer buf, char* stream, int size);
int stream_fm_buffer(Buffer buf, char* stream, int size);

#endif//__COMN_BUFFER_API_H_